import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Index from '@/pages/Index/Index'
import NewsList from '@/pages/NewsList/NewsList'
import ProductList from '@/pages/ProductList/ProductList'
import ProductDetail from '@/pages/ProductDetail/ProductDetail'
import DesignList from '@/pages/DesignList/DesignList'
import DesignDetail from '@/pages/DesignDetail/DesignDetail'
Vue.use(Router)

export default new Router({
  routes: [
    
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/newslist',
      name: 'NewsList',
      component: NewsList
    },
    {
      path: '/productlist',
      name: 'ProductList',
      component: ProductList
    },
    { 
      path: '/productDetail/:id', 
      name:'productDetail',
      component:  ProductDetail
      
    //  productDetail
    },
    {
      path: '/designlist',
      name: 'DesignList',
      component: DesignList
    },
    { 
      path: '/designDetail/:id', 
      name:'DesignDetail',
      component:  DesignDetail
      

    },
  ]
})
